Skip to content

Add support for Network Tier configuration#15083

Merged
melinath merged 10 commits intoGoogleCloudPlatform:mainfrom
printchard:network-tier-config
Oct 29, 2025
Merged

Add support for Network Tier configuration#15083
melinath merged 10 commits intoGoogleCloudPlatform:mainfrom
printchard:network-tier-config

Conversation

@printchard
Copy link
Contributor

@printchard printchard commented Sep 8, 2025

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

container: added `network_tier_config` to `google_container_cluster` resource.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 5 files changed, 182 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 5 files changed, 182 insertions(+), 1 deletion(-))

Missing doc report (experimental)

The following resources have fields missing in documents.

  • google_container_cluster
    • Expected Document Path: /website/docs/r/container_cluster.html.markdown
    • Fields: [ip_allocation_policy.network_tier_config ip_allocation_policy.network_tier_config.network_tier]

@modular-magician
Copy link
Collaborator

Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccContainerCluster_network_tier_config

Tests analytics

Total tests: 0
Passed tests: 0
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages

All service packages are affected

🔴 Errors occurred during REPLAYING mode. Please fix them to complete your PR.

View the build log

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 5 files changed, 173 insertions(+), 1 deletion(-))
google-beta provider: Diff ( 5 files changed, 173 insertions(+), 1 deletion(-))

Missing doc report (experimental)

The following resources have fields missing in documents.

  • google_container_cluster
    • Expected Document Path: /website/docs/r/container_cluster.html.markdown
    • Fields: [ip_allocation_policy.network_tier_config ip_allocation_policy.network_tier_config.network_tier]

@modular-magician
Copy link
Collaborator

Non-exercised tests

🔴 Tests were added that are skipped in VCR:

  • TestAccContainerCluster_network_tier_config

Tests analytics

Total tests: 0
Passed tests: 0
Skipped tests: 0
Affected tests: 0

Click here to see the affected service packages

All service packages are affected

🔴 Errors occurred during REPLAYING mode. Please fix them to complete your PR.

View the build log

@printchard printchard force-pushed the network-tier-config branch from d5c98ad to 4b282a9 Compare October 9, 2025 20:54
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 172 insertions(+))
google-beta provider: Diff ( 4 files changed, 172 insertions(+))

Missing doc report (experimental)

The following resources have fields missing in documents.

  • google_container_cluster
    • Expected Document Path: /website/docs/r/container_cluster.html.markdown
    • Fields: [ip_allocation_policy.network_tier_config ip_allocation_policy.network_tier_config.network_tier]

@modular-magician

This comment was marked as outdated.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 172 insertions(+))
google-beta provider: Diff ( 4 files changed, 172 insertions(+))

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@printchard printchard marked this pull request as ready for review October 20, 2025 17:16
@github-actions github-actions bot requested a review from melinath October 20, 2025 17:17
@github-actions
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@melinath, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@printchard
Copy link
Contributor Author

Test failures analysis

Some of the VCR tests are failing after my changes, but all of them seem unrelated to the changes I am making in this PR. Please look at the following breakdown.

Recording mode

  • TestAccContainerNodePool_withNetworkConfig: This seems to be unrelated to the changes. No changes were made to the node pool.

Replaying mode

  • TestAccContainerCluster_withKubeletResourceManagerConfig: This looks unrelated to the changes as well, config diff with multiple fields.
  • TestAccContainerCluster_withMasterAuthorizedNetworksConfig: Timeout, unrelated to the changes.
  • TestAccContainerCluster_withNodePoolResize: Timeout, unrelated to the changes
  • TestAccContainerCluster_withTPUConfig: Invalid config, unrelated to the changes
  • TestAccContainerCluster_withTpu: Invalid config, unrelated to the changes
  • TestAccContainerNodePool_performanceMonitoringUnit: Timeout, unrelated to the changes
  • TestAccContainerNodePool_resize: Status fail, unrelated to changes
  • TestAccContainerNodePool_resourceManagerTags: Timeout, unrelated to the changes
  • TestAccContainerNodePool_secondaryBootDisks: Errored, unrelated to the changes
  • TestAccContainerNodePool_withKubeletConfig: Config diff, unrelated to the changes
  • TestAccContainerNodePool_withLinuxNodeConfig: Timeout, unrelated to the changes
  • TestAccContainerNodePool_withNodeConfigWithBootDiskConfig: Timeout, unrelated to the changes

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 172 insertions(+))
google-beta provider: Diff ( 4 files changed, 172 insertions(+))

@modular-magician

This comment was marked as outdated.

@modular-magician

This comment was marked as outdated.

@printchard
Copy link
Contributor Author

Test failures analysis

I pushed changes to solve a documentation conflict, as such, all of these failures seem unrelated to the changes, as the code hasn't been touched. Additionally, there seems to be a quota issue as most failures seem related to the project hitting a count limit or being unable to reserve IP addresses.

@printchard
Copy link
Contributor Author

Thanks for fixing the tests! Looks like the test I introduced broke, I will take a look into that.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 168 insertions(+))
google-beta provider: Diff ( 4 files changed, 168 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 260
Passed tests: 230
Skipped tests: 11
Affected tests: 19

Click here to see the affected service packages
  • container

Action taken

Found 19 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccContainerCluster_network_tier_config
  • TestAccContainerCluster_withAdvancedDatapath
  • TestAccContainerCluster_withAutoscalingProfile
  • TestAccContainerCluster_withNodePoolAutoscaling
  • TestAccContainerCluster_withNodePoolResize
  • TestAccContainerCluster_withNodePoolUpdateVersion
  • TestAccContainerCluster_withPodAutoscaling
  • TestAccContainerCluster_withSecurityPostureConfig
  • TestAccContainerCluster_withTPUConfig
  • TestAccContainerCluster_withTpu
  • TestAccContainerCluster_withWorkloadALTSConfig
  • TestAccContainerNodePool_basicWithClusterId
  • TestAccContainerNodePool_gvnic
  • TestAccContainerNodePool_resize
  • TestAccContainerNodePool_secondaryBootDisks
  • TestAccContainerNodePool_withEnablePrivateNodesToggle
  • TestAccContainerNodePool_withKubeletConfig
  • TestAccContainerNodePool_withLoggingVariantUpdates
  • TestAccContainerNodePool_withNetworkConfig

Get to know how VCR tests work

@modular-magician

This comment was marked as outdated.

@printchard
Copy link
Contributor Author

@melinath The fix is done! The failing tests seem unrelated to the changes, as they have been failing in multiple PRs for a while now. PTAL. Thanks!!

@github-actions
Copy link

@GoogleCloudPlatform/terraform-team @melinath This PR has been waiting for review for 1 week. Please take a look! Use the label disable-review-reminders to disable these notifications.

@shuyama1
Copy link
Member

shuyama1 commented Oct 27, 2025

Fixed more of the GKE issues. Triggering a new run to record cassettes for this PR. Sorry for the noise!

/gcbrun

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 168 insertions(+))
google-beta provider: Diff ( 4 files changed, 168 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 260
Passed tests: 243
Skipped tests: 11
Affected tests: 6

Click here to see the affected service packages
  • container

Action taken

Found 6 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccContainerCluster_networkPerformanceConfig
  • TestAccContainerCluster_network_tier_config
  • TestAccContainerCluster_withAdditiveVPC
  • TestAccContainerCluster_withTPUConfig
  • TestAccContainerCluster_withTpu
  • TestAccContainerNodePool_secondaryBootDisks

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccContainerCluster_network_tier_config [Debug log]
TestAccContainerCluster_withAdditiveVPC [Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccContainerCluster_networkPerformanceConfig [Error message] [Debug log]
TestAccContainerCluster_withTPUConfig [Error message] [Debug log]
TestAccContainerCluster_withTpu [Error message] [Debug log]
TestAccContainerNodePool_secondaryBootDisks [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@printchard
Copy link
Contributor Author

Hello maintainers. Thanks for the effort cleaning up the tests. It seems like the remaining failures are still unrelated. PTAL.

Copy link
Member

@melinath melinath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall looks good; just a few small change suggestions.

Comment on lines +1887 to +1888
Optional: true,
Default: "NETWORK_TIER_DEFAULT",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd recommend marking this as Required: true so that if the network_tier_config block is specified, users must provide a value for network_tier.

Generally we try to avoid allowing empty blocks (unless they have a special meaning separate from the block being omitted.)

Suggested change
Optional: true,
Default: "NETWORK_TIER_DEFAULT",
Required: true,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Type: schema.TypeString,
Optional: true,
Default: "NETWORK_TIER_DEFAULT",
ValidateFunc: validation.StringInSlice([]string{"NETWORK_TIER_DEFAULT", "NETWORK_TIER_STANDARD", "NETWORK_TIER_PREMIUM"}, false),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there's a chance that more values will be added in the future, you might want to leave off the validation func so that the field will be forwards-compatible.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@github-actions github-actions bot requested a review from melinath October 28, 2025 22:45
Copy link
Contributor Author

@printchard printchard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback. I have made the requested changes, PTAL.

Comment on lines +1887 to +1888
Optional: true,
Default: "NETWORK_TIER_DEFAULT",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Type: schema.TypeString,
Optional: true,
Default: "NETWORK_TIER_DEFAULT",
ValidateFunc: validation.StringInSlice([]string{"NETWORK_TIER_DEFAULT", "NETWORK_TIER_STANDARD", "NETWORK_TIER_PREMIUM"}, false),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 4 files changed, 170 insertions(+))
google-beta provider: Diff ( 4 files changed, 170 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 260
Passed tests: 245
Skipped tests: 11
Affected tests: 4

Click here to see the affected service packages
  • container

Action taken

Found 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccContainerCluster_networkPerformanceConfig
  • TestAccContainerCluster_withTPUConfig
  • TestAccContainerCluster_withTpu
  • TestAccContainerNodePool_secondaryBootDisks

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccContainerCluster_networkPerformanceConfig [Error message] [Debug log]
TestAccContainerCluster_withTPUConfig [Error message] [Debug log]
TestAccContainerCluster_withTpu [Error message] [Debug log]
TestAccContainerNodePool_secondaryBootDisks [Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@melinath
Copy link
Member

Failing tests look unrelated.

@melinath melinath added this pull request to the merge queue Oct 29, 2025
Merged via the queue into GoogleCloudPlatform:main with commit ad90670 Oct 29, 2025
23 of 24 checks passed
akerekes pushed a commit to akerekes/magic-modules that referenced this pull request Oct 29, 2025
bcreddy-gcp pushed a commit to bcreddy-gcp/magic-modules that referenced this pull request Nov 24, 2025
JianweiQ pushed a commit to JianweiQ/magic-modules that referenced this pull request Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants